kexec: Avoid unaligned writes when producing crash info.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 24 Apr 2007 08:48:08 +0000 (09:48 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 24 Apr 2007 08:48:08 +0000 (09:48 +0100)
commit6265f09192803de7b8024e13b676dfeb74ef996a
tree709cd7ba062d4d54bdc6e3ad68c58a3f3d8ab263
parent348762501c938967c1ad7e566633d40b1ea8e8bd
kexec: Avoid unaligned writes when producing crash info.

The alignment of info is 32bits in line with the elf specification.
This means that on 64 bit architectures accessing it directly may
result unaligned access and a panic. I have been experiencing
this on IA64.

It seems that a simple approach of having an crash_xen_info_t on
the stack and simply memcopying it into info at the end alleviates
the problem.

Signed-off-by: Simon Horman <horms@verge.net.au>
xen/common/kexec.c